package com.codefish.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Classname PerInformationEntity
 * @Description 用户表
 * @Date 2021/4/29 15:00
 * @Created 学兔斯基眯眼看世界
 */
@Data
@TableName(value = "per_information")
public class PerInformationEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    private Long id;
    /**
     * 中文名
     */
    private String name;
    /**
     * 性别 w:女,m:男,o:其它
     */
    private String sex;
    /**
     * 联系方式
     */
    private String telephone;
    /**
     * 电子邮箱
     */
    private String email;
    /**
     * 身份证号码
     */
    private String idCardNo;
    /**
     * 民族
     */
    private String national;
    /**
     * 出生年月
     */
    private Date birthday;
    /**
     * 户口所在地
     */
    private String registeredResidence;
    /**
     * 现居住城市
     */
    private String cityOfResidence;
    /**
     * 1.在职/2.离职/3.在校学生
     */
    private String jobSearchStatus;
    /**
     * 参加工作时间
     */
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date joinWorkingHours;
    /**
     * 0未启用 1启用
     */
    private String status;
    /**
     * 创建人id
     */
    private Long createId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 修改人id
     */
    private Long updateId;
    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 0未删除 1删除
     */
    private String isDel;
    /**
     * 登录code
     */
    private String username;
    /**
     * 密码
     */
    private String password;


    @Override
    public String toString() {
        return "PerInformationEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", idCardNo='" + idCardNo + '\'' +
                ", national='" + national + '\'' +
                ", birthday=" + birthday +
                ", registeredResidence='" + registeredResidence + '\'' +
                ", cityOfResidence='" + cityOfResidence + '\'' +
                ", jobSearchStatus='" + jobSearchStatus + '\'' +
                ", joinWorkingHours=" + joinWorkingHours +
                ", status=" + status +
                ", createId=" + createId +
                ", createTime=" + createTime +
                ", updateId=" + updateId +
                ", updateTime=" + updateTime +
                ", isDel='" + isDel + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
